<template>
  <template v-if="isLogin">
    <OLayout>
      <router-view v-slot="{ Component }">
        <component :is="Component" />
      </router-view>
    </OLayout>
  </template>
  <template v-else>
    <!--    <Login></Login>-->
  </template>
</template>
<script setup>
import { ref } from 'vue'
import { onMounted, nextTick } from 'vue'
import OLayout from '@/layout/Layout.vue'

let isLogin = ref(true)
onMounted(() => {
  nextTick(() => {
    console.log('=========项目初始化========>')
  })
})
</script>
<style>
/* 全局样式（如重置样式、全局字体等） */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
}
</style>
